/*
 ============================================================================
 Name		: UI_SocketDocument.cpp
 Author	  : 
 Copyright   : Xiayang
 Description : CUI_SocketDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "UI_SocketAppUi.h"
#include "UI_SocketDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CUI_SocketDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CUI_SocketDocument* CUI_SocketDocument::NewL(CEikApplication& aApp)
	{
	CUI_SocketDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CUI_SocketDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CUI_SocketDocument* CUI_SocketDocument::NewLC(CEikApplication& aApp)
	{
	CUI_SocketDocument* self = new (ELeave) CUI_SocketDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CUI_SocketDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CUI_SocketDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CUI_SocketDocument::CUI_SocketDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CUI_SocketDocument::CUI_SocketDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CUI_SocketDocument::~CUI_SocketDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CUI_SocketDocument::~CUI_SocketDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CUI_SocketDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CUI_SocketDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CUI_SocketAppUi;
	}

// End of File
